home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / Re Scripting Problem.2 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Scripting Problem
  2. Sent:        8/6/96 7:47 AM
  3. Received:    8/6/96 8:53 AM
  4. From:        Serge Froment, sfroment@odyssee.net
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >The only property ODF requires all
  9. >scriptable objects to support is pClass. Some classes of objects can be
  10. >specified by numeric index, others can't.
  11.  
  12. The script command "get someProperty of first someClass" has ODF to access
  13. an object by index. When access index is not supported, we get an error
  14. message like "Can't make someClass 1 into someClass 1". This message
  15. confused my into thinking there were an ODF bug. I guess many users will be
  16. confused too.
  17.  
  18. >If the default
  19. >implementation for retrieving an object's index does not work for your
  20. >implementation, you'll need to override GetProperty and provide an
  21. >implementation that works.
  22.  
  23. This is what I did and it did worked well.
  24.  
  25. >Hope this helps,
  26.  
  27. It does.
  28.  
  29. I have another question I posted to the list and get some reply from Chris
  30. Hunt, but I am still confused. Here is my question:
  31.  
  32. Since scriptable parts inherit from FW_MPartScriptable (or
  33. FW_MEmbeddingPartScriptable), it looks like parts can have properties.
  34. However, I can't figure out how to specify part properties inside the
  35. 'aete' resource in such way that ODF will call my override of GetProperty
  36. for the my added property of my part object.
  37.  
  38. Thanks,
  39.  
  40. Serge
  41.  
  42.  
  43.